/**
 * Title: State.java
 * @author wujin
 * @date 2019年12月30日
 * @version 1.0
 */
package com.pm.common.exception;

/**
 * Title: State
 *
 * @author wujin
 * @date 2019年12月30日
 */
public enum ExpCodeState {
    /**
     * 未查询到数据
     */

    does_not_exist(400, "未查询到数据！"),
    login_success(200, "登陆成功！"),
    login_failed(401, "登陆失败，密码错误或用户不存在！"),
    login_failed_name_isnull(419, "登陆失败，用户名或密码不能为空！"),
    login_failed_for_token(402, "登录信息已失效,请重新登录！"),
    loginout(504, "已退出！"),
    login_failed_user_nots(403, "用户不存在！"),
    user_already_exists(418, "用户已经存在，请重新输入用户名！"),
    add_data_success(200, "数据添加成功！"),
    add_data_failed(404, "数据添加失败！"),
    synchronization_all_orders_success(416, "全量同步订单主表数据成功"),
    synchronization_all_orders_failed(417, "全量同步订单主表数据失败"),
    synchronization_all_orderBody_success(412, "全量同步订单表体数据成功"),
    synchronization_all_orderBody_failed(413, "全量同步订单表体数据失败"),
    add_data_equip_category_failed1(601, "负荷单元编码不能重复"),
    update_data_success(200, "数据更新成功！"),
    update_data_failed(405, "数据更新失败！"),
    remove_data_success(200, "数据删除成功！"),
    remove_data_failed(406, "数据删除失败！"),
    remove_task_failed(420, "该重点工作已分配目标任务，不允许删除！"),
    query_data_success(200, "查询成功！"),
    chage_date_success(200, "数据转换成功！"),
    chage_date_failed(409, "转换数据不能为空！"),
    query_data_failed(407, "查询数据出现错误！"),
    query_data_failed1(411, "工序没有关联的负荷单元，请先设定工序关联的负荷单元！"),
    caveat_conf_error(600, "该区间已存在值，请重新输入其他区间值！"),
    caveat_conf_val_error(601, "区间值的小值不能比大值大！"),
    network_error(500, "网络错误，待会重试！"),
    param_not_null(408, "参数不能为空！"),
    param_exception(410, "参数异常,请检查参数！"),
    schedule_Process_failed(501, "排产计划工序更新失败！"),
    loadCode_Process_failed(502, "工序没有对应得负荷单元"),
    add_failed_by_dept(503, "请检查部门编码是否重复！"),
    check_used(505, "该部门下存在员工信息，请修改后删除！"),
    upload_equip_image_failed(503, "设备图片上传失败！"),
    upload_equip_image_success(200, "设备图片上传成功！"),
    excel_export_failed(503, "数据导出失败！"),
    excel_export_success(200, "数据导出成功！"),
    data_batch_failed(505, "分批处理失败！"),
    data_batch_failed1(506, "待排产状态数据不能进行补料！"),
    data_batch_failed2(507, "待排产状态数据不能进行返工/返修！"),
    data_batch_failed3(508, "补料数量不能大于原有排产单数量！"),
    date_failed(509, "生成日期出错！"),
    start_date_failed(511, "开始时间不能小于当前时间！"),
    handler_not_oneman_failed(512, "当前操作员必须是随工单原有操作员才可提交！"),
    category_ref_failed(510, "负荷单元已被引用，不能删除！"),
    remedy_material_success(200, "补料成功！"),
    remedy_material_fail(518, "补料失败！"),
    rework_repair_success(200, "返工/返修成功！"),
    rework_repair_fail(517, "返工、返修失败！"),
    category_null_fail(513, "当前工序没有关联的负荷单元，请设置对应负荷单元！"),
    check_face_info_success(200, "人脸校验成功！"),
    upload_faild(514, "请上传真实照片！"),
    upload_success(200, "上传成功！"),
    upload_error(204, "上传失败！"),
    check_face_info_failed(515, "请将人脸对准摄像头！"),
    check_emp_jobnum_failed(516, "工号不能重复，请检查！"),
    check_face_info_failed_by_not_register(516, "您尚未录入人脸识别信息！"),
    data_batch_success(200, "分批处理成功！");


    private Integer code;
    private String msg;

    ExpCodeState(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
